﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.FireFightingWorks;

namespace LeadThing.AbpZeroTemplate.FireFightingWorks.EntityMapper.FireFightingWorks
{

    /// <summary>
    /// 消防工作的数据配置文件
    /// </summary>
    public class FireFightingWorkCfg : EntityTypeConfiguration<FireFightingWork>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public FireFightingWorkCfg()
        {
            ToTable("FireFightingWork", AbpZeroTemplateConsts.SchemaName.Basic);

            // 标题
            Property(a => a.Title).HasMaxLength(100);
            // 描述
            Property(a => a.Desc).HasMaxLength(4000);
        }
    }
}